package com.example.matchingjava.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.matchingjava.domain.MatchingMsg;
import com.example.matchingjava.mapper.MatchingMapper;
import com.example.matchingjava.service.MatchingService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class MatchingServiceImpl extends ServiceImpl<MatchingMapper, MatchingMsg> implements MatchingService {
    @Override
    public Boolean saveMatching(MatchingMsg addMsg) {
//        BeanUtils.copyProperties(dto,addMsg);
        return save(addMsg);
    }

    @Override
    public Boolean removeByIdMatching(Integer id) {
        return removeById(id);
    }

    @Override
    public Boolean updateMatching(MatchingMsg updeteMsg) {
        return saveOrUpdate(updeteMsg);
    }


    @Override
    public MatchingMsg getByIdMatching(Integer id) {
        return getById(id);
    }

    @Override
    public List<MatchingMsg> listMatching() {
        return list();
    }
}
